package com.hospital;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.hospital.pony.base.BaseActivity;
import com.hospital.pony.model.ApplyModel;

public class LookNoticeActivity extends BaseActivity {

	// title
	private TextView mTvTitle;
	// 返回
	private ImageView mIvBack;
	// 查询按钮
	private Button mbtnAdd;

	private TextView personName;
	private TextView shopMessage;



	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_look_notice);
		initWidget();
		initData();
	}

	@Override
	public void initWidget() {

		personName = (TextView) findViewById(R.id.personName);
		shopMessage = (TextView) findViewById(R.id.shopMessage);


		mbtnAdd = (Button) findViewById(R.id.mbtnAdd);
		mIvBack = (ImageView) findViewById(R.id.mIvBack);
		mTvTitle = (TextView) findViewById(R.id.mTvTitle);
		mTvTitle.setText("查看病历信息");
		mIvBack.setVisibility(View.VISIBLE);
		mIvBack.setOnClickListener(this);
		mbtnAdd.setOnClickListener(this);




	}


	@Override
	public void onClick(View v) {
		if(v.getId()==R.id.mIvBack){
			LookNoticeActivity.this.finish();
		}
	}

	private int posIndex = 0;

	ApplyModel applyModel;
	@Override
	public void initData() {
		applyModel = (ApplyModel) this.getIntent().getSerializableExtra("msg");
		shopMessage.setText(applyModel.getApplyNotice());
	}


}
